package com.ruoyi.rsikManage.mapper;

import com.ruoyi.rsikManage.domain.ReportApproval;
import com.ruoyi.rsikManage.domain.common.StatisticsRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


import java.util.Date;
import java.util.List;
import java.util.Map;

@Mapper
public interface ReportApprovalMapper {

    int insertReportApproval(ReportApproval reportApproval);

    List<ReportApproval> selectReportApprovalList(ReportApproval ReportApproval);

    ReportApproval selectReportApprovalById(Integer id);

    int deleteReportApprovalById(Integer id);

    int deleteReportApprovalByIds(Integer[] ids);

    Date getCreateDate(int id);

    //查询该报警是否存在报备
    List<ReportApproval> selectReportApprovalExists(Map map);

    //查询该报警是否存在报备
    List<ReportApproval> selectReportApprovalExistsForUnitCode(@Param("alarmTime")String alarmTime,
                                                               @Param("apeId")String apeId,
                                                               @Param("unitCode")Long unitCode);


}
